package com.chen.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @ClassName
 * @Description:    Ribbon 和 Eureka 整合之后客户端可以直接调用，不用关心IP地址和端口号
 * @Author:
 * @Date: Created in 22:33 2022/5/22
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = {"com.chen.springcloud"})
@ComponentScan("com.chen.springcloud")
public class FeignDeptConsumerApplication {
    public static void main(String[] args){
        SpringApplication.run(FeignDeptConsumerApplication.class,args);
    }
}
